<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<tiles:insertAttribute name="meta" />
	<title>Cms .Admin</title>
	<!-- Mobile Specific Metas -->
	<link rel="icon" type="image/ico" href="${ctx}/favicon.ico"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<tiles:insertAttribute name="cssplugin" />
	<tiles:insertAttribute name="subcssplugin" />
	<script type="text/javascript">
		//adding load class to body and hide page
		document.documentElement.className += 'loadstate';
	</script>
	<tiles:insertAttribute name="jsplugin" />
	<tiles:insertAttribute name="subjsplugin" />
</head>

<body>
<tiles:insertAttribute name="header" />
<div id="wrapper">
	<tiles:insertAttribute name="sidebar" />
	<div id="content" class="clearfix">
		<div class="contentwrapper">
			<tiles:insertAttribute name="breadcrumb" />
			<tiles:insertAttribute name="body" />
		</div>
	</div>
</div>
<c:if test="${message!=null}">
<div style="visibility: hidden">
	<p  style="visibility: hidden" id="smessage">${message.text}</p>
</div>
<script>


$(document).ready(function() { 	
	var text = $("#smessage").text();
	johnny.message('${message.type}',text);
});
</script>

	

</c:if>


</body>
</html>